Setting up Associations for Encoded Files

Course- htaccess >

Some browsers are capable of uncompressing encoded information as they receive it.
 
To enable a client to see that a file is encoded, create a .htaccess file following the main instructions and guidance, and include the following text:
 

AddEncoding x-gzip .gz .tgz
AddEncoding x-compress .Z


 
This tells the Apache Web Server to treat .gz and .tgz files as encoded by x-gzip, and .Z files as encoded by x-compress.